{load header}
<!--/H-->

    <!-- 内容区 -->
    <div id="main-content">
        <div id="top-alert" class="fixed alert alert-error" style="display: none;">
            <button class="close fixed" style="margin-top: 4px;">&times;</button>
            <div class="alert-content">这是内容</div>
        </div>
        <div id="main" class="main">
        <!-- nav --><!-- nav -->
            
	<div class="main-title cf">
		<h2>{$item['name_ch']}-接口管理</h2>
	</div>
	<div class="tab-wrap">
		<ul class="tab-nav nav">
                    <li data-tab="tab1" class="current"><a href="javascript:void(0);">平台接口</a></li>
		</ul>
		<div class="tab-content">
	<form action="" method="post" class="form-horizontal">
            <div id="tab1" class="tab-pane in tab1">
                <div class="form-item cf" style="border:1px solid #999999;width:430px;padding: 5px 5px;">
                        <label class="item-label">一键注册接口<span class="check-tips">（格式:http://）</span></label>
                        <div class="controls">
                                <input type="text" class="text input-large" name="reg_link" value="{$item['reg_link']}">
                        </div>

                        <label class="item-label">是否一键注册</label>
                        <div class="controls">
                            <label class="radio"><input {if $item['is_fast_reg']} checked {/if} type="radio" name="is_fast_reg" value="1" />是</label>
                            <label class="radio"><input {if !$item['is_fast_reg']} checked {/if} type="radio" name="is_fast_reg" value="0" />否</label>
                        </div>

                </div>
                <div class="form-item cf" style="border:1px solid #999999;width:430px;padding: 5px 5px;">
                        <label class="item-label">一键登录接口<span class="check-tips">（格式:http://）</span></label>
                        <div class="controls">
                                <input type="text" class="text input-large" name="login_link" value="{$item['login_link']}">
                        </div>
                        <label class="item-label">是否一键登录</label>
                        <div class="controls">
                            <label class="radio"><input {if $item['is_fast_login']} checked {/if} type="radio" name="is_fast_login" value="1" />是</label>
                            <label class="radio"><input {if !$item['is_fast_login']} checked {/if} type="radio" name="is_fast_login" value="0" />否</label>
                        </div>
                </div>
                <div class="form-item cf" style="border:1px solid #999999;width:430px;padding: 5px 5px;">
                    <label class="item-label">H5注册接口<span class="check-tips">（格式:http://）</span></label>
                    <div class="controls">
                        <input type="text" class="text input-large" name="h5_reg_link" value="{$item['h5_reg_link']}">
                    </div>
                </div>
                <div class="form-item cf" style="border:1px solid #999999;width:430px;padding: 5px 5px;">
                    <label class="item-label">H5登录接口<span class="check-tips">（格式:http://）</span></label>
                    <div class="controls">
                        <input type="text" class="text input-large" name="h5_login_link" value="{$item['h5_login_link']}">
                    </div>
                </div>
                <div class="form-item cf" style="border:1px solid #999999;width:430px;padding: 5px 5px;">
                        <label class="item-label">满标投资记录接口链接<span class="check-tips">（单个用户，格式:http://）</span></label>
                        <div class="controls">
                            <input type="text" class="text input-large" name="simple_success_invest_link" value="{$item['simple_success_invest_link']}">
                        </div>
                </div>
                <div class="form-item cf" style="border:1px solid #999999;width:430px;padding: 5px 5px;">
                        <label class="item-label">满标投资记录接口链接<span class="check-tips">（多个用户，格式:http://）</span></label>
                        <div class="controls">
                            <input type="text" class="text input-large" name="success_invest_link" value="{$item['success_invest_link']}">
                        </div>
                </div>
                <div class="form-item cf" style="border:1px solid #999999;width:430px;padding: 5px 5px;">
                        <label class="item-label">查询用户投资记录待收本金接口<span class="check-tips">（多个用户，格式:http://）</span></label>
                        <div class="controls">
                            <input type="text" class="text input-large" name="invest_amount_link" value="{$item['invest_amount_link']}">
                        </div>
                </div>
            </div>
            <div class="form-item cf">
                <input type="hidden" name="plat_en" value="{$item['plat_en']}"/>
                <input type="hidden" name="plat_id" value="{$item['plat_id']}"/>
                <button class="btn submit-btn ajax-post" id="submit" type="submit" target-form="form-horizontal">确 定</button>
                <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
            </div>
	</form>
	</div>
</div>
<link href="{eval echo base_url()}static/datetimepicker/css/datetimepicker.css" rel="stylesheet" type="text/css">
<link href="{eval echo base_url()}static/datetimepicker/css/dropdown.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="{eval echo base_url()}static/datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
<script type="text/javascript" src="{eval echo base_url()}static/datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js" charset="UTF-8"></script>
<script type="text/javascript">
	$(function(){
	    $('#sign_date').datetimepicker({
	        format: 'yyyy-mm-dd',
	        language:"zh-CN",
		    minView:2,
		    autoclose:true
	    });

	    $('#datetimepicker').datetimepicker({
	       format: 'yyyy-mm-dd',
	        language:"zh-CN",
	        minView:2,
	        autoclose:true,
	        pickerPosition:'bottom-left'
	    })
	   $(".borrow_child").click(function(){
		   var name_num=0; 
		   name_num=$(".name_name").find("input").length;
		   name_num=name_num+1;
		   $(".name_name").append("<br/><input type='text' class='text input-large' name='name"+name_num+"' value=''>");
		   $(".acount_acount").append("<br/><input type=\"text\" onkeyup=\"this.value=this.value.replace(/[^0-9.}]/g,'')\" onafterpaste=\"this.value=this.value.replace(/[^0-9.}]/g,'')\" class=\"text input-middle\" name=\"account"+name_num+"\" value=\"\">元");
	   });
	   $("select[name='borrow_style'] >option").click(function(){
			var type=$(this).attr("value");
			if(type=="endday"){
				$("#borrow_period_time").html("天");
			}else{
				$("#borrow_period_time").html("个月");
			}
	   });
	    
	})
</script>
<!--F-->{load footer}
<script type="text/javascript">
showTab();
</script>